﻿@model BuildContext
@{
    var project = Model.Project;
}
<Project Sdk="Microsoft.NET.Sdk.Web">
    <PropertyGroup>
        <ServerGarbageCollection>false</ServerGarbageCollection>
        <!--- ServerGarbageCollection ： 服务器垃圾收集 ：不会让内存无限增长 -->
        <ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
        <!--- ConcurrentGarbageCollection ： 并发垃圾收集 ：不会让内存无限增长 -->
        <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
        <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
        <TargetFramework>netcoreapp2.2</TargetFramework>
        <LangVersion>7.3</LangVersion>
    </PropertyGroup>

    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
        <DocumentationFile>bin\Debug\netcoreapp2.2\@(project.Module).xml</DocumentationFile>
        <NoWarn>1701;1702</NoWarn>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.AspNetCore.App" />
    </ItemGroup>

    <ItemGroup>
        <ProjectReference Include="..\@(project.Module).Service\@(project.Module).Service.csproj" />
    </ItemGroup>

    <ItemGroup>
        <Content Update="nlog.config">
            <CopyToOutputDirectory>Always</CopyToOutputDirectory>
        </Content>
    </ItemGroup>
</Project>